<%--
  Created by IntelliJ IDEA.
  User: HeWL
  Date: 2020/11/25
  Time: 8:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" import="java.util.*" language="java" %>
<%
    Object msg = request.getAttribute("msg");
    if(msg!=null){
%>
<%=msg.toString() %>
<%} %>
<html>
<head>
    <title>登录</title>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
            background-color: #EAEAEA;
        }
        div{
            width: 350px;
            height: 300px;
            background-color: pink;
        }
        .center-in-center{
            position: absolute;
            top: 50%;
            left: 50%;
            -webkit-transform: translate(-50%, -50%);
            -moz-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            -o-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
        }
    </style>
</head>
<body>

</div>
<form action="login.do" method="post">
    <div class="center-in-center">
        <br><br>
        用户名:<input name="uname"/></br><br>
        密码:<input name = "pwd" type="password"/> </br><br>
        验证码:<input name="vcode"/>
        <img src="code" onclick="this.src='code?'+Math.random();"
             class="s1" title="看不清，换一个"/><br/>
        <input type="submit" value="登录" style="text-align: center"/>
    </div>
</form>
</body>
</html>
